package com.fh.shop.api.task;

import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;
import org.springframework.stereotype.Service;

import java.util.Date;

@Component
public class TimeTask {

    @Scheduled(cron = "15/15 * * * * ?")
    public void showTime() {
        System.out.println(new Date());
    }
}
